package day05_class;

public class PhoneTest {
    public static void main(String[] args) {
        // 创建对象
        Phone p1 = new Phone();
        p1.brand= "小米";
        p1.price = 3999;
        p1.color = "白色";
        p1.show();
        p1.call("周杰伦");
        p1.sendMessage();
        System.out.println("------------------------");
        // 创建对象
        Phone p2 = new Phone();
        p2.brand= "华为";
        p2.price = 19999;
        p2.color = "黑色";
        p2.show();
        p2.call("周杰伦");
        p2.sendMessage();
    }
}
